﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowBusCar.ascx.cs" Inherits="Control_ShowBusCar" %>

<h2>Bus Car Settings</h2> 

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
     <div style="width:950px">
        <a style="margin:0em 0em 0em 0.5em;">BusNo:</a><a style="margin:5em 0em 0em 0.5em;">
            <asp:DropDownList ID="dropdownlist1" runat="server" Width="100px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
        </a>
        <a style="margin:0em 0em 0em 0.5em;">Start Location:</a><a style="margin:0em 0em 0em 0.5em;">
            <asp:DropDownList ID="dropdownlist2" runat="server" Width="100px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
       </a>
         <a style="margin:0em 0em 0em 0.5em;">End Location:</a><a style="margin:0em 0em 0em 0.5em;">
            <asp:DropDownList ID="dropdownlist3" runat="server" Width="100px">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
       </a>
        <asp:Button ID="btnsearch" runat="server" Text="Search" 
             onclick="btnsearch_Click" />
        <asp:Label ID="lblnull" runat="server" Text="Not Found The Value" 
            BorderColor="#CC0000" ForeColor="#CC0000" Visible="False"></asp:Label>
     </div> 
    <table id="rounded-corner" >
        <tr>
        	<th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">Type Bus</th>
            <th scope="col" class="rounded">Bus No</th>
            <th scope="col" class="rounded">Seats Used</th>
            <th scope="col" class="rounded">Start Location</th>
            <th scope="col" class="rounded">End Location</th>
            <th scope="col" class="rounded">Date Start</th>
            <th scope="col" class="rounded">Time Plan</th>
            <th scope="col" class="rounded">Status</th>
            <th scope="col" class="rounded">Edit</th>
            <th scope="col" class="rounded-q4">Delete</th>
        </tr>

<asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="IdBusCar" DataKeyNames="idbuscar">
    <ItemTemplate>
        <tr>
        	<td><input type="checkbox" name="idBusCar" value="<%# Eval("idbuscar") %>" /></td>
            <td><%# Eval("typename")%></td>
            <td><%# Eval("busno")%></td>
            <td><%# Eval("seatused")%></td>
            <td><%# Eval("startlocation")%></td>
            <td><%# Eval("endlocation")%></td>
            <td><%# Eval("datestart")%></td>
            <td><%# Eval("timeplan")%></td>
            <td><%# Eval("Status")%></td>
            
    
            <td><a href="../Admin/UpdateBusCar_Admin.aspx?idbuscar=<%# Eval("idbuscar") %>&Busno=<%# Eval("busno") %>&Seatuse=<%# Eval("seatused")%>&slocation=<%# Eval("startlocation") %>&elocation=<%# Eval("endlocation") %>&bustype=<%# Eval("typename") %>&status=<%# Eval("Status") %>"><img src="../Images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="../Admin/DeleteBusCar_Admin.aspx?idbuscar=<%# Eval("idbuscar") %>" class="ask"><img src="../Images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <asp:PlaceHolder runat="server" ID="idbuscar"></asp:PlaceHolder>
    </LayoutTemplate>
</asp:ListView> 
      
</table>
	 <a href="../Admin/AddBusCar_Admin.aspx" class="bt_green"><span class="bt_green_lft"></span><strong>Add new item</strong><span class="bt_green_r"></span></a>
    
     <a href="#" class="bt_red"><span class="bt_red_lft"></span><strong>Delete items</strong><span class="bt_red_r"></span></a> 
     

     <div class="pagination">
         <asp:DataPager ID="DataPagerForAlbums" runat="server" PagedControlID="ListView1" PageSize="5">
                <Fields>
                    <asp:NextPreviousPagerField ShowFirstPageButton="True" FirstPageText="&laquo prev" ShowNextPageButton="False"  ShowPreviousPageButton="false" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField ShowLastPageButton="True" LastPageText="&raquo next" ShowPreviousPageButton="False"  ShowNextPageButton="false" />
                </Fields>
         </asp:DataPager>
     </div>
        
        </p>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="DataPagerForAlbums" />
    </Triggers>
</asp:UpdatePanel> 


